
using System.ComponentModel.DataAnnotations;

using System.Collections.ObjectModel;
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace Timetable.Base.Entities
{
    [DataContract(IsReference = true)]
    public class Lecturer: BaseEntity
    {
        [DataMember]
	    public string Lastname { get; set; }
        [DataMember]
	    public string Firstname { get; set; }
        [DataMember]
	    public string Middlename { get; set; }
        [DataMember]
	    public string Contacts { get; set; }

        public Department Department { get; set; }

        public Rank Rank { get; set; }

        public virtual ICollection<ScheduleInfo> ScheduleInfoes { get; set; }

        public Lecturer()
        {
            ScheduleInfoes = new HashSet<ScheduleInfo>();
        }
    }
}
